package com.czh.subject.application.convert;

import com.czh.subject.application.dto.SubjectInfoDTO;
import com.czh.subject.domain.entity.SubjectInfoBO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface SubjectInfoConverter {
    SubjectInfoConverter INSTANCE = Mappers.getMapper(SubjectInfoConverter.class);

    @Mapping(source = "subjectInfoDTO", target = ".")
    SubjectInfoBO convert(SubjectInfoDTO subjectInfoDTO);

    List<SubjectInfoDTO> convert(List<SubjectInfoBO> subjectInfoBO);

    SubjectInfoDTO convert(SubjectInfoBO subjectInfoBO);

}
